import React from 'react';
import dynamic from '@/utils/dynamic';

export default  [ //二级
    {
        path:'/main/grade', //班级管理
        title: "班级管理",
        component:dynamic({
            component:()=> import('@/views/main/classManage'),
            // app,  //局部注册model
            // models: () => []
        }),
        view_id: "main-grade",
        groupid: "class_group"
    },
    {
        
        "path":"/main/addQuestions",
        "groupid":"question_group",
        "component":dynamic({
            component:() => import('@/views/main/addQuestion')
        }),
        "view_id": "main-addQuestions",
        "title": "添加试题"
    },
    {
        
        "path":"/main/questionsType",
        "groupid":"question_group",
        "component":() => <div>试题分类</div>,
        "view_id": "main-questionsType",
        "title": "试题分类"
    },
    {
        
        "path":"/main/watchQuestions",
        "groupid":"question_group",
        "component":() => <div>查看试题</div>,
        "view_id": "main-watchQuestions",
        "title": "查看试题"
    },
    {
        
        "path":"/main/addUser",
        "groupid":"user_group",
        "component":() => <div>添加用户</div>,
        "view_id": "main-addUser",
        "title": "添加用户"
    },
    {
        
        "path":"/main/showUser",
        "groupid":"user_group",
        "component":() => <div>用户展示</div>,
        "view_id": "main-showUser",
        "title": "用户展示"
    },
    {
        
        "path":"/main/addExam",
        "groupid":"exam_group",
        "component":() => <div>添加考试</div>,
        "view_id": "main-addExam",
        "title": "添加考试"
    },
    {
        
        "path":"/main/menu",
        "groupid":"menu_group",
        "component":() => <div>添加菜单</div>,
        "view_id": "main-menu",
        "title": "添加菜单"
    },
    {
        
        "path":"/main/editQuestions",
        "groupid":"question_group",
        "component":() => <div>编辑试题</div>,
        "view_id": "main-editQuestions",
        "title": "编辑试题"
    },
    {
        
        "path":"/main/questionsDetail",
        "groupid":"question_group",
        "component":() => <div>试题详情</div>,
        "view_id": "main-questionsDetail",
        "title": "试题详情"
    },
    {
        
        "path":"/main/student",
        "groupid":"class_group",
        "component":() => <div>学生管理</div>,
        "view_id": "main-student",
        "title": "学生管理"
    },
    {
        
        "path":"/main/room",
        "groupid":"class_group",
        "component":() => <div>教室管理</div>,
        "view_id": "main-room",
        "title": "教室管理"
    },
    {
        
        "path":"/main/examEdit",
        "groupid":"question_group",
        "component":() => <div>创建试卷</div>,
        "view_id": "main-examEdit",
        "title": "创建试卷"
    },
    {
        
        "path":"/main/examList",
        "groupid":"question_group",
        "component":() => <div>试卷列表</div>,
        "view_id": "main-examList",
        "title": "试卷列表"
    },
    {
        
        "path":"/main/examDetail",
        "groupid":"question_group",
        "component":() => <div>试卷详情</div>,
        "view_id": "main-examDetail",
        "title": "试卷详情"
    },
    {
        
        "path":"/main/examinationPapers",
        "groupid":"exam_group",
        "component":dynamic({
            component:() => <div>阅卷</div>
        }),
        "view_id": "main-examinationPapers",
        "title": "阅卷"
    },
    {
        
        "path":"/main/examPaperClassList",
        "groupid":"exam_group",
        "component":() => <div>批卷班级</div>,
        "view_id": "main-examPaperClassList",
        "title": "批卷班级"
    },
    {
        
        "path":"/main/examPaperClassmate",
        "groupid":"exam_group",
        "component":() => <div>待批试卷</div>,
        "view_id": "main-examPaperClassmate",
        "title": "待批试卷"
    }
]